Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic selenium testing #131

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Basic selenium testing #131

merged 2 commits into from
Oct 18, 2024

Conversation

Restioson
Copy link
Collaborator

@Restioson Restioson commented Oct 17, 2024

I've added a very basic selenium test, alongside the necessary changes to the CI, requirements.txt, and Dockerfile to make it work locally and in CI.

So far, this just checks that the main pages (as listed in the navigation bar) do not 404, have a Django ProgrammingError page displayed, etc. The test uses the Chromium webdriver because it is more complex to set up one test to run with two different webdrivers in sequence. It also opts for emulating the common desktop resolution of 1080p (future tests could check that the navbar expander, etc., work properly, but this is out of scope for test # 1).

@Restioson Restioson marked this pull request as ready for review October 17, 2024 13:48
@Restioson
Copy link
Collaborator Author

I'll push changes addressing feedback and comments as fixup! commits, and then squash them up once the PR is approved

This means we don't have to keep the two files in sync manually anymore
So far, this just checks that the main pages (as listed in the navigation bar) do not 404, have a Django ProgrammingError page displayed, etc. The test uses the Chromium webdriver because it is more complex to set up one test to run with two different webdrivers in sequence. It also opts for emulating the common _desktop_ resolution of 1080p (future tests could check that the navbar expander, etc., work properly, but this is out of scope for test #1).
@Restioson Restioson merged commit df6b43d into main Oct 18, 2024
2 checks passed
@Restioson Restioson deleted the test/selenium branch October 18, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants